package com.zgkxzx.mvpbase.api;



import com.zgkxzx.mvpbase.bean.BaseRequestBean;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Url;
import rx.Observable;

/**
 * 创建者   zgkxzx
 * 创建日期 2016/11/11.
 * 功能描述 RestApi接口
 */
public interface ApiService {


    //网络请求通用接口
    @GET
    Call<ResponseBody> getNetInfoByUrl(@Url String url);


    //上传数据到微信运动
    @FormUrlEncoded
    @POST("WearableDevice/wechat/sports.do")
    Observable<BaseRequestBean<String>> uploadWXSport(@Field("token") String token, @Field("param") String param);

    @FormUrlEncoded
    @POST("http://zgkxzx/WearableDevice/wechat/sports.do")
    Observable<BaseRequestBean<String>> uploadWXSport2(@Field("token") String token, @Field("param") String param);

}
